﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace database
{
    public partial class Control_Stock : UserControl
    {
        public Control_Stock()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Stock_add csa = new Control_Stock_add();
            csa.Show();
            this.MainPanel.Controls.Add(csa);
        }

        private void MainPanel_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Stock_modify csm = new Control_Stock_modify();
            csm.Show();
            this.MainPanel.Controls.Add(csm);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Stock_delete csd = new Control_Stock_delete();
            csd.Show();
            this.MainPanel.Controls.Add(csd);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Stock_search css = new Control_Stock_search();
            css.Show();
            this.MainPanel.Controls.Add(css);
        }
    }
}
